#include <stdio.h>
#include <string.h>

int main(){

}

void rotate(void *front,void *middle,void *end){
	int frontSize = ((char*)middle - (char*)front);
	int backSize = (char*)end - (char*)middle;
	char buff[frontSize];
	memcpy(buff,front,frontSize);
	memmove(front,middle,backSize);
	memcpy((char*)end-frontSize,buff,frontSize);
}
